package com.steak.orm.service.impl;

import com.steak.orm.factory.SQLBuilderInstanceFactory;
import com.steak.orm.service.ISave;
import com.steak.orm.datasource.JdbcTemplate;
import java.util.List;

/**
 * @author 刘牌
 * @Title:
 * @date 2022/3/413:54
 */
public class Save<T> extends JdbcTemplate implements ISave<T> {
    @Override
    public void saveBatch(List<T> list) throws Exception {

    }

    @Override
    public void saveOrUpdateBatch(List<T> list) {

    }

    @Override
    public void save(T t) throws Exception {
        String saveSQL = SQLBuilderInstanceFactory.getSaveBuilder().saveSQL(t);
        execute(saveSQL);
    }

    @Override
    public void saveOrUpdate(T t) {

    }
}
